package com.wyq.action;

import java.io.InputStream;

import com.opensymphony.xwork2.ActionSupport;
import com.wyq.service.AudienceService;

/**
 * 导出注册用户的excel
 * @author Fyj
 *
 */
public class CreatAudienceExcelAction extends ActionSupport{
	private String showId;
	private AudienceService audienceService;

	public void setAudienceService(AudienceService audienceService) {
		this.audienceService = audienceService;
	}
	
	public InputStream getDownloadFile(){
		InputStream inputStream = null;
		try {
			inputStream = audienceService.getInputStream(showId);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return inputStream;
		
	}
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public String getShowId() {
		return showId;
	}

	public void setShowId(String showId) {
		this.showId = showId;
	}


}
